﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PaginatedList<B10.Models.Comment>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Komentarze użytkownika
    <%=ViewContext.RouteData.Values["name"] %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="tabs" class="ui-corner-all ui-helper-clearfix alternate-header">
        <ul>
            <li>
                <%=Html.ActionLink("Profil", "Index", null, new {title="Profil" })%>
            </li>
            <li>
                <%=Html.ActionLink("Opublikowane strony", "PageList",
                    new { page=""}, new { title = "Opublikowane strony" })%>
            </li>
            <li class="selected"><a title="Komentarze"
                href="#">Komentarze</a> </li>
        </ul>
        <div class="clear"></div>        
    </div>
    <div id="Komentarze" class="break">
            <ol id="comment-list" class="page-list">
                <%foreach (var c in Model)
                  { %>
                <li id='comment-<%=c.Id %>'>
                    <div class="page-list-item">
                        <ul class="meta-info">
                            <li><span class="link-wrapper"><a href='<%= Url.Action("Page","Home",                                      
                                      new { pageUrl = c.UserPage.Url,id = c.UserPage.Id })%>#comment-<%=c.Id %>'>
                                Link
                            </a></span></li>                           
                            <li class='last'>Data: <strong>
                                <%= Html.Encode(c.Date.ToShortDateString()) + " " + Html.Encode(c.Date.ToShortTimeString())%>
                            </strong></li>
                        </ul>
                        <div class="page-item-body">
                            <%= c.Body %></div>
                    </div>
                </li>
                <%} %>
            </ol>
            <% Html.RenderPartial("PaginationControl", Model.ListInfo); %>
        </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="LeftColumnContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="RightColumnContent" runat="server">
</asp:Content>
